package net.wofly.sale.stock.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.wofly.sale.commodity.domain.Commodity;
import net.wofly.sale.commodity.domain.CommodityTerminal;

/**
 * 领料内容
 *
 * @author lign
 * @version 1.0
 * @created 29-9月-2017 21:43:57
 */
@Data
@Entity
@Table(name = "sale_stock_resourceasklist")
@ApiModel(description = "领料内容")
public class ResourceAskList {

    @Id
    private String resourceAskListID;
    
    @ApiModelProperty(name = "resourceAskID", value = "领料申请ID", required = true)
    private String resourceAskID;
    
    @ApiModelProperty(name = "commodityTerminalID", value = "申请的终端商品ID", required = true)
    private String commodityTerminalID;
    
    /**
     * 申请数量
     */
    @ApiModelProperty(name = "askNum", value = "申请数量", required = true)
    private Integer askNum = 0 ;
    
    /**
     * 批准数量
     */
    @ApiModelProperty(value = "批准数量")
    private Integer approvalNum = 0 ;
    
    @Transient
    @ApiModelProperty(name = "Commodity", value = "商品信息", required = false)
    Commodity commodity ;
    
    @Transient
    @ApiModelProperty(name = "CommodityTerminal", value = "终端商品信息", required = false)
    private CommodityTerminal commodityTerminal;
    
    private Long modifyDate;
    

    public ResourceAskList() {

    }
    @Override
    public void finalize() throws Throwable {

    }
}